package com.xlh.support.quiz.po;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@ApiModel("创建提问")
@Data
public class QuizCreatePO {

    @NotBlank(message = "提问内容不能为空")
    @Length(max = 1000, message = "提问内容不能超过1000个字符")
    private String quizName;

    @NotNull(message = "章节Id不能为空")
    private Long chapterId;

    @NotNull(message = "页码不能为空")
    private Integer pageNumber;

    @NotNull(message = "提问类型不能为空")
    private Integer quizType;

    private Boolean judgementAnswer;
}
